
//判断是否mock模式，模拟http请求
/* import http from '@/api/js/http'
const isMock = import.meta.env.VITE_MOCK;
if(isMock == '1'){
  //  require('./mock/index.ts')
  import('./mock/index');
}
console.log('is mock load ok....='+isMock)
*/

import { createApp } from 'vue'
import {createPinia} from 'pinia'
import router from '@/router/index.ts'

import "element-plus/theme-chalk/el-message-box.css";
import "element-plus/theme-chalk/el-loading.css";
import "element-plus/theme-chalk/el-message.css";
import "element-plus/theme-chalk/el-notification.css";

import '@/style/style.css'
import './style/common.scss'
import '@/style/btn.scss'
import '@/style/index.scss' // global css
import '@/style/formPage.scss' // global css

import App from './App.vue'

// 引入SvgIcon组件
// 本地SVG图标
import "virtual:svg-icons-register";
// 引入SvgIcon组件
import svgIcon from "@/components/SvgIcon/index.vue";





const app = createApp(App);
const pinia = createPinia();
app.use(pinia);
app.use(router);
app.mount('#app');
app.component('svg-icon', svgIcon)//注册图标组件


import './util/permission.ts'

/*
router.beforeEach(()=>{
  console.log('before each')
})

*/
